package com.mutual.assistance.user.model.vo;

import com.mutual.assistance.validation.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="添加单条权限", description="添加单条权限")
@NoArgsConstructor
@AllArgsConstructor
public class AddPermissionVO {

    @ApiModelProperty(value = "角色主键")
    @NotNull(message = "角色id不能为空", groups = ValidationGroups.Insert.class)
    private String roleId;

    @ApiModelProperty(value = "菜单主键")
    @NotNull(message = "菜单资源不能为空", groups = ValidationGroups.Insert.class)
    private String menuId;
}
